package com.xiaodu.springboot;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author: dutianjie
 * @date: 2021/3/22
 * @version: v1.0.0
 * @description: 描述
 * @email: dutianjie@thunisoft.com
 **/
@SpringBootApplication
public class ApplicationStart {

    public static void main(String[] args) {
//        ConfigurableApplicationContext run = SpringApplication.run(ApplicationStart.class, args);
        SpringApplication springApplication = new SpringApplication();
        springApplication.setBannerMode(Banner.Mode.CONSOLE);
        springApplication.addPrimarySources(Stream.of(ApplicationStart.class).collect(Collectors.toList()));
        springApplication.run(args);

    }
}
